using System.Threading.Tasks;
using UUIDNext;
using HengTong.Model.Db.Hr.Attendance.Rule;


namespace HengTong.ViewModel.Hr.SysAttendanceSubsidyRuleVms
{
    public partial class SysAttendanceSubsidyRuleVm : CrudVm<SysAttendanceSubsidyRule>
    {

        public SysAttendanceSubsidyRuleVm()
        {
            SetInclude(x => x.Shift);
        }

        protected override void InitVM()
        {
        }

        public override async Task DoAddAsync()
        {
            Entity.ID = Uuid.NewDatabaseFriendly(Database.SqlServer);
            await base.DoAddAsync();
        }

        public override async Task DoEditAsync(bool updateAllFields = false)
        {
            await base.DoEditAsync(updateAllFields);
        }

    }
}
